package cn.itsource.blog.domain.article;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Data
public class Article {
    @Id
    private String _id;
    private Integer id;
    private String articlePic;
    private String articleName;
    private String articleTag;
    private Integer articleType;
    private Integer articleState;
    private Integer topState;
    private Integer publishId;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;
    private Integer articleReadCount;
    private Integer articleStarNum;
    private Integer articleCommentNum;
    private String articleRemark;
    private String articleContent;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<Article> children =new ArrayList<>();
    private String articleTypeName;
    private String employeeName;
}
